<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Step 6: Performing Backup">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="DWS_00010.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
  <meta name="DC.Publisher" content="20241029">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="DWS_00019">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Step 6: Performing Backup</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="DWS_00019"></a><a name="DWS_00019"></a>
  <h1 class="topictitle1">Step 6: Performing Backup</h1>
  <div>
   <p>Before performing backup, you need to associate the resources to be protected with a specified SLA. The system protects the resources and periodically executes backup jobs based on the SLA. You can perform a backup job immediately through manual backup.</p>
   <div class="section">
    <h4 class="sectiontitle">Precautions</h4>
    <ul>
     <li>Copies generated by manual backup are retained for the duration defined in the SLA.<p>If the protection policy selected during manual backup is not defined in the SLA, the generated backup copy is retained permanently. If incremental backup is not defined in the SLA but is selected during manual backup, the copies generated by the manual incremental backup are retained permanently.</p></li>
     <li>If a replication or archive policy has been defined in the SLA, the system will perform replication or archiving once based on the SLA when you perform manual backup.</li>
     <li>During manual backup, the parameters (except <span class="uicontrol"><b>Automatic Retry</b></span>) defined in the SLA, such as <span class="uicontrol"><b>Rate Limiting Policies</b></span>, are applied to the manual backup job.</li>
    </ul>
   </div>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Choose <span class="uicontrol" id="DWS_00019__en-us_topic_0000001656569013_en-us_topic_0000001666345505_uicontrol865195012392"><b><span id="DWS_00019__en-us_topic_0000001656569013_en-us_topic_0000001666345505_text4651950123919"><strong>Protection</strong></span> &gt; Big Data &gt; GaussDB (DWS)</b></span>.</span></li>
     <li><span>Click the <span class="uicontrol"><b><span><strong>Clusters</strong></span></b></span>, <span class="uicontrol"><b><span><strong>Schema Sets</strong></span></b></span>, or <span class="uicontrol"><b><span><strong>Table Sets</strong></span></b></span> tab, locate the row that contains the resource to be protected, and choose <span class="menucascade"><b><span class="uicontrol">More</span></b> &gt; <b><span class="uicontrol">Protect</span></b></span>.</span><p></p><p>You can also select multiple resources for batch protection.</p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>To protect a table set:</p>
        <ul>
         <li>Ensure that GDS has been started on the agent host. GDS running on the GaussDB (DWS) node occupies resources in the production environment. Therefore, you are advised to start GDS on the agent host. For details about how to start GDS, see "Installing, Configuring, and Starting GDS" in the <a href="https://support.huawei.com/enterprise/en/cloud-computing/hcs-dws-service-pid-251527524" target="_blank" rel="noopener noreferrer">GaussDB (DWS) Product Documentation</a> of the corresponding version.</li>
         <li>Parameters <strong>-d</strong>, <strong>-p</strong>, and <strong>-t</strong> are required for starting GDS. The directory for storing data of each GDS must be unique. The following is an example:<pre class="screen">/home/gds_user/bin/gds <strong>-d</strong><strong> </strong>/home/gds_user/input_data_1/ <strong>-p</strong> 192.168.97.240:9001 -H 0/0 -l /home/gds_user/gds_log/gds_process1.log -D <strong>-t</strong> 2
/home/gds_user/bin/gds <strong>-d</strong> /home/gds_user/input_data_2/ <strong>-p</strong> 192.168.97.240:9002 -H 0/0 -l /home/gds_user/gds_log/gds_process2.log -D <strong>-t</strong> 2
/home/gds_user/bin/gds <strong>-d</strong> /home/gds_user/input_data_3/ <strong>-p</strong> 192.168.97.240:9003 -H 0/0 -l /home/gds_user/gds_log/gds_process3.log -D <strong>-t</strong> 2
/home/gds_user/bin/gds <strong>-d</strong> /home/gds_user/input_data_4/ <strong>-p</strong> 192.168.97.240:9004 -H 0/0 -l /home/gds_user/gds_log/gds_process4.log -D <strong>-t</strong> 2</pre></li>
         <li>If you start GDS on multiple agent hosts, the system uses the agent host with the largest number of GDSs for backup. Therefore, you are advised to start multiple GDSs as one user on only one agent host. To achieve the highest performance, it is recommended that the number of GDSs to be started be four times and eight times the number of backup storage units for a dual-controller system and a four-controller system, respectively.</li>
         <li>If the GaussDB (DWS) node is deployed with the sandbox, map the GDS configuration directory in the sandbox to the corresponding directory on the host before GDS-based table set backup.</li>
        </ul>
       </div>
      </div> <p></p></li>
     <li><span>Enter <span class="uicontrol"><b><span><strong>Backup Metadata Storage Path</strong></span></b></span>. Enter a directory on a GaussDB (DWS) node to store backup copy metadata. If the directory does not exist, the system will automatically create it. The GaussDB (DWS) cluster user must have the read and write permissions on the directory.</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <ul>
         <li>At least 20 GB disk space must be reserved on the Backup Metadata Storage Path. Do not configure the path as a system volume or production service volume. Otherwise, production services will be affected when the disk space is insufficient.</li>
         <li>To check whether the GaussDB (DWS) cluster user has the read and write permissions on the backup metadata storage path, log in to the GaussDB (DWS) node as user <strong>root</strong> and run the <strong>ls -ld</strong> <em>Backup metadata storage path</em> command. If you do not have the read and write permissions, run the <strong>sudo chown </strong><em>GaussDB (DWS) cluster user</em><strong>:</strong><em>Backup metadata storage path of the GaussDB (DWS) cluster user</em> command to change the permissions.<p>An example is as follows:</p> <pre class="screen">ls -ld /home/omm/backup</pre> <pre class="screen">sudo chown omm:omm /home/omm/backup</pre></li>
        </ul>
       </div>
      </div> <p></p></li>
     <li><span>Select an SLA.</span><p></p><p>You can also click <span class="uicontrol"><b><span><strong>Create</strong></span></b></span> to create an SLA.</p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
       <div class="notebody">
        <ul>
         <li>Preset SLAs cannot be selected when schema sets or table sets are to be protected.</li>
         <li><span>If a WORM policy has been configured for the resources to be protected, select an SLA without a WORM policy to avoid WORM policy conflicts.</span></li>
        </ul>
       </div>
      </div> <p></p></li>
     <li><span>Click <span class="uicontrol" id="DWS_00019__en-us_topic_0000001964713008_uicontrol23691650677"><b>OK</b></span>.</span><p></p><p id="DWS_00019__en-us_topic_0000001964713008_en-us_topic_0000001656691397_p25041111535">If the current system time is later than the start time of the first backup specified in the SLA, you can select <strong id="DWS_00019__en-us_topic_0000001964713008_b9624185216713">Execute manual backup now</strong> in the dialog box that is displayed or choose to perform automatic backup periodically based on the backup policy set in the SLA.</p> <p></p></li>
     <li><strong>Optional: </strong><span>Perform manual backup.</span><p></p><p>If you want to execute a backup job immediately, perform manual backup through the following operations. Otherwise, skip this step.</p>
      <ol type="a">
       <li>In the row where the cluster, schema set, or table set to be backed up resides, choose <span class="uicontrol"><b>More &gt; <span><strong>Manual Backup</strong></span></b></span>.</li>
       <li>Set the name of the copy generated through manual backup.<p>If this parameter is left unspecified, the system sets the name to <strong>backup_</strong><em>Timestamp</em> by default.</p></li>
       <li>Set a protection policy.
        <ul>
         <li>For clusters, you can select <span class="uicontrol"><b><span><strong>Full backup</strong></span></b></span>, <span class="uicontrol"><b><span><strong>Incremental backup</strong></span></b></span>, or <span class="uicontrol"><b><span><strong>Differential Backup</strong></span></b></span>.</li>
         <li>For table sets, only <span class="uicontrol"><b><span><strong>Full backup</strong></span></b></span> is supported.</li>
         <li>For schema sets, only <span class="uicontrol"><b><span><strong>Full backup</strong></span></b></span> is supported. For GaussDB (DWS) 8.2.1 and later versions, <span class="uicontrol"><b><span><strong>Incremental backup</strong></span></b></span> is also supported for schema sets.</li>
        </ul>
        <div class="note">
         <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
         <div class="notebody">
          <p id="DWS_00019__en-us_topic_0000001964713008_p13522118194919"><span id="DWS_00019__en-us_topic_0000001964713008_ph19374310343">For 1.6.0 and later versions, if the selected protection policy is different from that configured in the associated SLA, the WORM configuration does not take effect.</span></p>
         </div>
        </div></li>
       <li>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.
        <div class="note">
         <img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span>
         <div class="notebody">
          <p id="DWS_00019__en-us_topic_0000001607531736_p870125314544">You can select multiple resources to perform manual backup in batches. Select multiple resources and choose <span class="uicontrol" id="DWS_00019__en-us_topic_0000001607531736_uicontrol14182155715711"><b><span id="DWS_00019__en-us_topic_0000001607531736_text662114113158"><strong>More</strong></span> &gt; <span id="DWS_00019__en-us_topic_0000001607531736_text1068159191519"><strong>Manual Backup</strong></span></b></span> in the upper left corner of the page.</p>
         </div>
        </div></li>
      </ol> <p></p></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>Parent topic:</strong> <a href="DWS_00010.html">Backing Up GaussDB (DWS)</a>
    </div>
   </div>
  </div>
 </body>
</html>